.class final Lnet/tsapps/topdeals/bl;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lnet/tsapps/topdeals/DetailActitivty;

.field private final synthetic b:J

.field private final synthetic c:I

.field private final synthetic d:Lnet/tsapps/topdeals/views/CommentView;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/DetailActitivty;JILnet/tsapps/topdeals/views/CommentView;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/bl;->a:Lnet/tsapps/topdeals/DetailActitivty;

    iput-wide p2, p0, Lnet/tsapps/topdeals/bl;->b:J

    iput p4, p0, Lnet/tsapps/topdeals/bl;->c:I

    iput-object p5, p0, Lnet/tsapps/topdeals/bl;->d:Lnet/tsapps/topdeals/views/CommentView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .locals 7

    :try_start_0
    iget-object v0, p0, Lnet/tsapps/topdeals/bl;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v0}, Lnet/tsapps/topdeals/DetailActitivty;->e(Lnet/tsapps/topdeals/DetailActitivty;)Lnet/tsapps/topdeals/h/a;

    move-result-object v0

    iget-wide v1, p0, Lnet/tsapps/topdeals/bl;->b:J

    iget v3, p0, Lnet/tsapps/topdeals/bl;->c:I

    invoke-virtual {v0, v1, v2, v3}, Lnet/tsapps/topdeals/h/a;->a(JI)Lnet/tsapps/topdeals/objects/Comment;

    move-result-object v2

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    iget-object v0, p0, Lnet/tsapps/topdeals/bl;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v0}, Lnet/tsapps/topdeals/DetailActitivty;->d(Lnet/tsapps/topdeals/DetailActitivty;)Lnet/tsapps/topdeals/objects/Deal;

    move-result-object v0

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/Deal;->i:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v1, v0, :cond_0

    iget-object v0, p0, Lnet/tsapps/topdeals/bl;->a:Lnet/tsapps/topdeals/DetailActitivty;

    new-instance v1, Lnet/tsapps/topdeals/s;

    iget-object v3, p0, Lnet/tsapps/topdeals/bl;->d:Lnet/tsapps/topdeals/views/CommentView;

    invoke-direct {v1, p0, v3, v2}, Lnet/tsapps/topdeals/s;-><init>(Lnet/tsapps/topdeals/bl;Lnet/tsapps/topdeals/views/CommentView;Lnet/tsapps/topdeals/objects/Comment;)V

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/DetailActitivty;->runOnUiThread(Ljava/lang/Runnable;)V

    :goto_1
    return-void

    :cond_0
    iget-object v0, p0, Lnet/tsapps/topdeals/bl;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v0}, Lnet/tsapps/topdeals/DetailActitivty;->d(Lnet/tsapps/topdeals/DetailActitivty;)Lnet/tsapps/topdeals/objects/Deal;

    move-result-object v0

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/Deal;->i:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/Comment;

    iget-wide v3, v0, Lnet/tsapps/topdeals/objects/Comment;->a:J

    iget-wide v5, v2, Lnet/tsapps/topdeals/objects/Comment;->a:J

    cmp-long v0, v3, v5

    if-nez v0, :cond_1

    iget-object v0, p0, Lnet/tsapps/topdeals/bl;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v0}, Lnet/tsapps/topdeals/DetailActitivty;->d(Lnet/tsapps/topdeals/DetailActitivty;)Lnet/tsapps/topdeals/objects/Deal;

    move-result-object v0

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/Deal;->i:Ljava/util/List;

    invoke-interface {v0, v1, v2}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Lnet/tsapps/topdeals/g/a; {:try_start_0 .. :try_end_0} :catch_0

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :catch_0
    move-exception v0

    iget-object v1, p0, Lnet/tsapps/topdeals/bl;->a:Lnet/tsapps/topdeals/DetailActitivty;

    new-instance v2, Lnet/tsapps/topdeals/q;

    invoke-direct {v2, p0, v0}, Lnet/tsapps/topdeals/q;-><init>(Lnet/tsapps/topdeals/bl;Lnet/tsapps/topdeals/g/a;)V

    invoke-virtual {v1, v2}, Lnet/tsapps/topdeals/DetailActitivty;->runOnUiThread(Ljava/lang/Runnable;)V

    goto :goto_1
.end method
